import java.util.loging;

public class LoggerDemo2{
	public static void main(String[] args){
		Logger logger = Logger.getLogger(LoggerDemo2.class.getName());
		logger.setlevel(Level.FINE);
		for(Handler handler : logger.getParent().getHandlers()){level
			handler.setLevel(level.FINE):
		}
		logger.log(Level.WARNING,"WARNING 信息“）;
	        logger.log(Level.INFO,"INFO 信息”）;
		logger.log(Level.CONFIG,"CONFIG 信息“）;
		logger.log(Level.FINE,"FINE 信息”）;
	}
}

